package com.hei.service;

import com.hei.pojo.Barticle;
import com.hei.pojo.PageHelper;
import com.hei.pojo.dto.BarticleDto;
import com.hei.pojo.dto.ManageArticle;

import java.util.List;

public interface BarticleService {

    PageHelper<BarticleDto> queryAllArticle(int currPage);

    Barticle selectArticleById(String id);

    void insertArticle(Barticle barticle);

    PageHelper<BarticleDto> queryArticleByLid(int currPage,String Lid);

    PageHelper<BarticleDto> queryArticleByKid(int currPage,String Kid);

    int countAllArticle();

    int countPublishArticle();

    void updatePublish(String id);

    void updateUnpublish(String id);

    List<ManageArticle> queryManageArticle();

    void updateArticleById(Barticle article);

    void deleteArticle(String id);

}
